package com.itheima.controller;

import com.itheima.pojo.Result;
import com.itheima.service.ReportService;
import com.itheima.vo.GetEmpGenderVo;
import com.itheima.vo.GetJobListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CountController {
    @Autowired
    ReportService reportService;
    @GetMapping("report/empJobData")
    public Result getExprJob() {
        GetJobListVo vo = reportService.getExprJob();
        return Result.success(vo);
    }

    @GetMapping("/report/empGenderData")
    public Result getEmpGender() {
        List<GetEmpGenderVo> vo = reportService.getEmpGender();
        return Result.success(vo);
    }
}
